package com.ruoyi.household.mapper;

import com.ruoyi.system.api.domain.BuildingSystem;

import java.util.List;

/**
 * 楼栋CRUDMapper接口
 * 
 * @author ruoyi
 * @date 2022-10-01
 */
public interface BuildingSystemMapper 
{
    /**
     * 查询楼栋CRUD
     * 
     * @param id 楼栋CRUD主键
     * @return 楼栋CRUD
     */
    public BuildingSystem selectBuildingSystemById(Long id);

    /**
     * 查询楼栋CRUD列表
     * 
     * @param buildingSystem 楼栋CRUD
     * @return 楼栋CRUD集合
     */
    public List<BuildingSystem> selectBuildingSystemList(BuildingSystem buildingSystem);

    /**
     * 新增楼栋CRUD
     * 
     * @param buildingSystem 楼栋CRUD
     * @return 结果
     */
    public int insertBuildingSystem(BuildingSystem buildingSystem);

    /**
     * 修改楼栋CRUD
     * 
     * @param buildingSystem 楼栋CRUD
     * @return 结果
     */
    public int updateBuildingSystem(BuildingSystem buildingSystem);

    /**
     * 删除楼栋CRUD
     * 
     * @param id 楼栋CRUD主键
     * @return 结果
     */
    public int deleteBuildingSystemById(Long id);

    /**
     * 批量删除楼栋CRUD
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBuildingSystemByIds(Long[] ids);

    BuildingSystem selectBuildingByName(String rQName);
}
